﻿using KINLO.MES.MESModels;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;


namespace KINLO.WebApi.MESModels
{
    public class RootMESProduct_HourDataModel
    {
        public List<MESProduct_HourDataModel> data = new List<MESProduct_HourDataModel>();
    }
    public class MESProduct_HourDataModel
    {
        /// <summary>
        /// 班组
        /// </summary>
        public string Team { get; set; }
        /// <summary>
        /// 班次
        /// </summary>
        public string Shift { get; set; }
        /// <summary>
        /// 工号(操作员)
        /// </summary>
        public string WorkNumber { get; set; }
        /// <summary>
        /// 生产开始时间
        /// </summary>
        public string ProductionStartTime { get; set; }
        /// <summary>
        /// 生产结束时间
        /// </summary>
        public string ProductionEndTime { get; set; }
        /// <summary>
        /// 设备编码
        /// </summary>
        public string EquipmentNo { get; set; }
        /// <summary>
        /// 工单号
        /// </summary>
        public string WorkOrderNo { get; set; }
        /// <summary>
        /// 投入数
        /// </summary>
        public string PutIntoNumber { get; set; }
        /// <summary>
        /// 合格数
        /// </summary>
        public string QualifiedNumber { get; set; }
        /// <summary>
        /// 不合格数量
        /// </summary>
        public string UnqualifiedNumber { get; set; }
    }

    public class MESProduction_HourDataLogModel : MESProduct_HourDataModel
    {
        /// <summary>
        /// 序号
        /// </summary>
        public Guid ID { get; set; }
        /// <summary>
        /// 上传结果
        /// </summary>
        public string Result { get; set; }
        /// <summary>
        /// 上传时间
        /// </summary>
        public DateTime UploadedDate { get; set; }

        /// <summary>
        /// 补录时间
        /// </summary>
        public DateTime SupplementalDate { get; set; } = DateTime.MinValue;

        /// <summary>
        /// 当前状态 -1 上传失败 0 重新上传失败 1 重新上传成功
        /// </summary>
        public int CurrentStatus { get; set; } = -1;

    }

}
